package TransactionImplementation

//更改名称事务
//引入类
import (
	"SalaryPayment/AbstractTransaction"
	"SalaryPayment/Model"
)

//结构体
type ChangeNameTransaction struct {
	AbstractTransaction.ChangeEmployeeTransaction
	itsName string
}

//更改名称
func (ch *ChangeNameTransaction) Change(employee *Model.Employee) {
	//集合名称
	employee.SetName(ch.itsName)
}

